package com.indusfo.spc.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.indusfo.spc.common.pojo.BasePojo;

import java.util.Date;

/**
 * @author: louk
 * @Description: 工序表
 * @date: 2019/11/18 14:13
 *
 */

public class Pro  extends BasePojo {
    /**
     * 工序id
     */
    private Integer proId;
    /**
     * 工序名称
     */
    private String proName;
    /**
     * 部门id
     */
    private Integer depId;
    /**
     * 工序类型Id
     */
    private String proTypeId;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
    /**
     *修改日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyDate;
    /**
     * 备注
     */
    private String remark;
    /**
     * 数据状态
     */
    private Integer dataState;

    /**
     * @author: louk
     * @Description:以上是数据库定义字段,以下是衍生字段
     * @date: 2019/11/18 14:19
     *
     */
    /**
     * 数据状态名称
     * @return
     */
    private String dataStateName;

    /**
     * 工序类型名称
     * @return
     */

    private String proTypeName;

    /**
     * 部门名称
     * @return
     */
    private String depName;

    public String getDepName() {
        return depName;
    }

    public void setDepName(String depName) {
        this.depName = depName;
    }

    public String getDataStateName() {
        return dataStateName;
    }

    public void setDataStateName(String dataStateName) {
        this.dataStateName = dataStateName;
    }

    public String getProTypeName() {
        return proTypeName;
    }

    public void setProTypeName(String proTypeName) {
        this.proTypeName = proTypeName;
    }

    public Integer getProId() {
        return proId;
    }

    public void setProId(Integer proId) {
        this.proId = proId;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName == null ? null : proName.trim().replace(" ","");
    }

    public Integer getDepId() {
        return depId;
    }

    public void setDepId(Integer depId) {
        this.depId = depId;
    }

    public String getProTypeId() {
        return proTypeId;
    }

    public void setProTypeId(String proTypeId) {
        this.proTypeId = proTypeId == null ? null : proTypeId.trim().replace(" ","");
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim().replace(" ","");
    }

    public Integer getDataState() {
        return dataState;
    }

    public void setDataState(Integer dataState) {
        this.dataState = dataState;
    }

    public Pro() {
    }

    public Pro(String proName, String remark, String proTypeName) {
        this.proName = proName;
        this.remark = remark;
        this.proTypeName = proTypeName;
    }
}